<%@ page language="java" pageEncoding="utf-8"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"   %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql" %>
<!-- 数据源的配置 -->
  <sql:setDataSource driver="com.microsoft.jdbc.sqlserver.SQLServerDriver"   url="jdbc:microsoft:sqlserver://127.0.0.1:1433;databaseName=material" 
  user="sa" password="123456" var="db" scope="request"/>
  <!-- 查询相应的信息 -->
  <sql:query var="purOrder" dataSource="${db}">select * from purOrder where  pordId=${param.id }</sql:query>
  <c:forEach var="c" items="${purOrder.rows}">

<head>
    
    <title>AddMaterial1.jsp</title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
   <%@ include file="header.jsp"%>

<table width="780" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <td width="120" valign="top" background="../images/in_left_bg.gif"><%@ include file="purchasingLeft.jsp"%></td>
    <td width="660" align="center">
	<p align="center" class="title1">修改采购订单档案</p>
 <form action="purOrderManage.do?flag=modify" method="post">
 	<table width="640" height="513" border="1" align="center" cellpadding="3" cellspacing="0" bordercolor="#CCCCCC">
      <tr>
        <td width="103" height="33"><div align="right"> 订单号:</div></td>
        <td width="176"><input name="pordId" type="text"  class="String" id="pordId" size="6" maxlength="6" value="${c.pordId }">
      </td>
        <td width="78" height="33"><div align="right">物料编号:</div></td>
        <td width="249"><input name="maCode" type="text"  class="String"  size="8" maxlength="4" value="${c.maCode }">
  </td>
      </tr>
      <tr>
       <td width="103" height="33"><div align="right"> 下单时间:</div></td>
        <td width="176"><input name="pordDate" type="text"  class="String" id="pordDate" size="10" maxlength="10" value="${c.pordDate }">
          </td>
         <td width="78" height="33"><div align="right">物料名称:</div></td>
        <td width="249"><input name="maName" type="text"  class="String" id="maName" size="8" maxlength="4" value="${c.maName }" > <br></td>
      </tr>
      <tr>
        <td height="33"><div align="right"> 购买时间: </div></td>
        <td><input name="purDate" type="text"  class="data" id="purDate"  size="10" maxlength="10" value="${c.purDate}">
          </td>
        <td><div align="right">物料数量: </div></td>
        <td><input name="maNum" type="text"  class="String" id="maNum" size="10" maxlength="10" value="${c.maNum }"> <br></td>
      </tr>
      <tr>
        <td width="78" height="33"><div align="right">物料单价:</div></td>
        <td><input name="maPrice" type="text"  class="String" id="maPrice" size="8" maxlength="4" value="${c.maPrice }"> <br></td>    
        <td width="78" height="33"><div align="right">物料总额: </div></td>
        <td><input name="maAmount" type="text"  class="String" id="maAmount" size="8" maxlength="4" value="${c.maAmount }">
          </td>
      </tr>
      <tr>
        <td width="78" height="33"><div align="right">供应商编号:</div></td>
        <td><input name="proCode" type="text"  class="String" id="proCode" size="20" maxlength="20" value="${c.proCode }"></td>
        <td width="78" height="33"><div align="right">供应商: </div></td>
        <td><input name="proName" type="text"  class="String" id="proName" size="20" maxlength="30" value="${c.proName }"></td>
      </tr>
        <td height="33"><div align="right">申请部门:</div></td>
        <td><input name="departId" type="text"  class="data" id="departId" size="15" maxlength="15" value="${c.departId }"> 
          </td>
      <tr>
        <td height="33"><div align="right"> 备注: </div></td>
        <td colspan="3"><textarea name="note" cols="60" rows="4" id="note"   >${c.note }</textarea></td>
      <tr>
        <td height="49" colspan="4"><div align="center"><input type="submit" value="保存"/><input type="reset" value="重置"/>
		    <a href="purOrderManage.do?flag=page">返回</a></td>
       
      </tr>
    </table>
	
	</form>    
    </td>
  </tr>
</table>
<%@ include file="footer.jsp"%>

  </body>

</c:forEach>